home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr48
/
frac2.zip
/
FRAC2.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1993-04-26
|
645b
|
50 lines
Program KEVINFRACTAL;
Uses graph,crt;
var X,Y:integer;
Procedure init;
var
gd,gm:integer;
begin
gd:=detect;
initgraph(gd,gm,'c:\tp\bgi');
end;
Procedure Doit;
var
C,OX,OY,S:integer;
begin
OX:=x;
OY:=y;
S:=random(3)+1;
if s=1 then
begin
X:=(OX+200) div 2;
Y:=OY div 2;
c:=red;
end;
if s=2 then
begin
X:=OX div 2;
Y:=(OY+400) div 2;
c:=blue;
end;
if s=3 then
begin
X:=(OX+400) div 2;
Y:=(OY+400) div 2;
c:=green;
end;
putpixel(OX,oy,c);
end;
begin
Init;
randomize;
X:=100;
y:=100;
repeat
doit;
until keypressed;
end.